package com.woniu.apartment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.apartment.mapper.ApartLayoutImageMapper;
import com.woniu.apartment.domain.ApartLayoutImage;
import com.woniu.apartment.service.IApartLayoutImageService;

/**
 * 房型图片Service业务层处理
 * 
 * @author yy
 * @date 2023-04-03
 */
@Service
public class ApartLayoutImageServiceImpl implements IApartLayoutImageService 
{
    @Autowired
    private ApartLayoutImageMapper apartLayoutImageMapper;

    /**
     * 查询房型图片
     * 
     * @param id 房型图片主键
     * @return 房型图片
     */
    @Override
    public ApartLayoutImage selectApartLayoutImageById(Long id)
    {
        return apartLayoutImageMapper.selectApartLayoutImageById(id);
    }

    /**
     * 查询房型图片列表
     * 
     * @param apartLayoutImage 房型图片
     * @return 房型图片
     */
    @Override
    public List<ApartLayoutImage> selectApartLayoutImageList(ApartLayoutImage apartLayoutImage)
    {
        return apartLayoutImageMapper.selectApartLayoutImageList(apartLayoutImage);
    }

    /**
     * 新增房型图片
     * 
     * @param apartLayoutImage 房型图片
     * @return 结果
     */
    @Override
    public int insertApartLayoutImage(ApartLayoutImage apartLayoutImage)
    {
        return apartLayoutImageMapper.insertApartLayoutImage(apartLayoutImage);
    }

    /**
     * 修改房型图片
     * 
     * @param apartLayoutImage 房型图片
     * @return 结果
     */
    @Override
    public int updateApartLayoutImage(ApartLayoutImage apartLayoutImage)
    {
        return apartLayoutImageMapper.updateApartLayoutImage(apartLayoutImage);
    }

    /**
     * 批量删除房型图片
     * 
     * @param ids 需要删除的房型图片主键
     * @return 结果
     */
    @Override
    public int deleteApartLayoutImageByIds(Long[] ids)
    {
        return apartLayoutImageMapper.deleteApartLayoutImageByIds(ids);
    }

    /**
     * 删除房型图片信息
     * 
     * @param id 房型图片主键
     * @return 结果
     */
    @Override
    public int deleteApartLayoutImageById(Long id)
    {
        return apartLayoutImageMapper.deleteApartLayoutImageById(id);
    }
}
